import reuquest from '@/utils/request.js'

// 车辆数据
export const catListApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/car/tree', data, options)
}

// 订单状态选项卡
export const orderStatusTabsApi = (data = {}, options = { loading: false }) => {
	return reuquest.post('/apiapp/order/tabs_order_status', data, options)
}

// 列表
export const orderListApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/order/list', data, options)
}

// 详情
export const orderDetailsApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/order/details', data, options)
}

// 提交新申请
export const orderAddApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/order/add', data, options)
}

// 编辑申请
export const orderEditApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/order/edit', data, options)
}

// 审核申请
export const orderAuditApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/order/audit', data, options)
}

// 取消申请
export const orderCancelApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/order/cancel', data, options)
}
